package com.example.permission.myjbm.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.ListView;

/**
 * Created by JBMhaier on 2017/2/21.
 */

/**
 * 可以嵌套用的ListView
 */
public class MeauseListView extends ListView{
    public MeauseListView(Context context) {
        super(context);
    }

    public MeauseListView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public MeauseListView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        heightMeasureSpec= MeasureSpec.makeMeasureSpec((1<<30)-1,MeasureSpec.AT_MOST);
        super.onMeasure(widthMeasureSpec, heightMeasureSpec);

    }
}
